<?php
/**
 * @Project: None
 * @FileName: GameAttribute.php
 * @FilePath: D:\thinkphp6\tp\app\model\GameAttribute.php
 * @Author: zishuiliufeng
 * @Date:   2021-01-28 17:35:51
 * @Last Modified by:   zishuiliufeng
 * @Last Modified time: 2021-01-30 18:39:37
 */

namespace app\model;

use think\Model;

class GameAttribute extends Model
{
    protected $name = 'game_attribute';

    public function searchNameAttr($query, $value, $data){
        $query->$where('name', 'like', $value. '%');
    }

    public function searchIdAttr($query, $value, $data){
        $query->$where('id', '=', $value);
    }

    public function searchEnNameAttr($query, $value, $data){
        $query->$where('en_name', 'like', $value. '%');
    }
    
}